//用户协议
$(function(){
	$(".chooseAgree").click(function(){	   
	   if(this.checked){
		  $(".userAgreementBtnSubmit").removeAttr("disabled");	 	  
	   }else{
		  $(".userAgreementBtnSubmit").attr("disabled","disabled"); 
	   }
	});	
	$(".userAgreementBtnSubmit").click(function(){		
		  if(!$(this).attr("disabled")){
			  var newCookie = new sweetCookie();
			  newCookie.setCookie("userAgree","1",2*60*1000);
			  window.close();
		  }
	});
});